import java.util.Scanner;

public class Main1464 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        int d=sc.nextInt();
        int e=sc.nextInt();
        int f=sc.nextInt();
        int g=sc.nextInt();
     double x= (a+b+c+d+e+f+g)/7.0;
     System.out.print(String.format("%.1f",x));
        System.out.print(" ");
        int max=0;
        if (a>b)
            max=a;
            else max=b;
            if (c>max)
                max=c;
            if (d>max)
                max=d;
            if (e>max)
                max=e;
            if (f>max)
                max=f;
            if (g>max)
                max=g;
        System.out.print(max);
        System.out.print(" ");
        int min=0;
        if (a<b)
            min=a;
        else min=b;
        if (c<min)
            min=c;
        if (d<min)
            min=d;
        if (e<min)
            min=e;
        if (f<min)
            min=f;
        if (g<min)
            min=g;
        System.out.print(min);
    }
}
